package com.campus.mapper;

import com.campus.entity.TManagerStudent;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StudentMapper {

    @Options(useGeneratedKeys = true, keyProperty = "tManagerStudent.id")
    int createStudent(TManagerStudent tManagerStudent);

    @Options(useGeneratedKeys = true, keyProperty = "tManagerStudent.id")
    int createStudents(@Param("studentList") List<TManagerStudent> studentList);
}
